package com.fp.m7.client.widget;

import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlowPanel;

/**
 * Previous / Next buttons set.
 * 
 * @author 7
 */
public class PreviousNextButtonsWidget extends Composite {

    private Button btnPrevious;
    private Button btnNext;

    public PreviousNextButtonsWidget() {
        FlowPanel flowPanel = new FlowPanel();
        initWidget(flowPanel);
        flowPanel.setSize("", "48px");

        btnPrevious = new Button();
        btnPrevious.setStyleName("buttonPrevious");
        flowPanel.add(btnPrevious);

        btnNext = new Button();
        btnNext.setStyleName("buttonNext");
        flowPanel.add(btnNext);
    }

    public Button getPreviousButton() {
        return btnPrevious;
    }

    public Button getNextButton() {
        return btnNext;
    }

}
